import card_system

while True:
    card_system.start_system()
    user_play = input("请输入您要操作功能的序号：")
    print("您选择的操作是【%s】" % user_play)
    if user_play in ["1", "2", "3"]:  # 判断输入的字符是否在列表内
        if user_play == "1":
            card_system.new_card()
        elif user_play == "2":
            card_system.show_card()
        elif user_play == "3":
            card_system.index_card()
    elif user_play == "0":
        print("欢迎再次使用名片管理系统！")
        break
    else:
        print("系统没有此操作！请重新选择操作序号")